﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="Xemdanhsachdethi.aspx.cs" Inherits="DOAN.Admin.Xemdanhsachdethi"
    Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="content-right">
        <asp:Panel ID="pnXemdanhsachdethi" runat="server">
            <div class="register">
                <span class="cl4">
                    <asp:Label ID="lblLoi" runat="server" Text=""></asp:Label></span>
            </div>
            <div class="register mart22">
                <div class="label">
                    <asp:Label ID="Label3" runat="server" Text="Chọn Môn"></asp:Label>
                </div>
                <div class="text_box">
                    <asp:DropDownList ID="drpMon" runat="server" Width="186px" AutoPostBack="True" 
                        onselectedindexchanged="drpMon_SelectedIndexChanged">
                    </asp:DropDownList>
                </div>
            </div>
            <div class="register mart22">
                <asp:GridView runat="server" ID="griXemDethi" AutoGenerateColumns="False" EmptyDataText="Không có dữ liệu !"
                    Width="679px" AllowPaging="True" 
                    OnPageIndexChanging="gridXemDethi_PageIndexChanging" 
                    onrowcommand="griXemDethi_RowCommand">
                    <Columns>
                        <asp:TemplateField HeaderText="Mã đề thi ">
                            <ItemTemplate>
                                <asp:Label runat="server" ID="lblmadt3" Text='<%#DataBinder.Eval(Container.DataItem,"Madethi") %>'>
                                </asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Mã môn">
                            <ItemTemplate>
                                <asp:Label runat="server" ID="lblmadt1" Text='<%#DataBinder.Eval(Container.DataItem,"Mamonhoc") %>'>
                                </asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Tiêu đề">
                            <ItemTemplate>
                                <asp:Label runat="server" ID="lblmagv" Text='<%#DataBinder.Eval(Container.DataItem,"Tieude") %>'>
                                </asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="DS ma cau hỏi">
                            <ItemTemplate>
                                <asp:Label runat="server" ID="lblmadt" Text='<%#DataBinder.Eval(Container.DataItem,"Macauhoi") %>'>
                                </asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Số câu">
                            <ItemTemplate>
                                <asp:Label runat="server" ID="lblSocdau" Text='<%#DataBinder.Eval(Container.DataItem,"Socau") %>'>
                                </asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Thời gian">
                            <ItemTemplate>
                                <asp:Label runat="server" ID="lblSocau1" Text='<%#DataBinder.Eval(Container.DataItem,"Thoigian") %>'>
                                </asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Ngày tạo">
                            <ItemTemplate>
                                <asp:Label runat="server" ID="lblSocau3" Text='<%#DataBinder.Eval(Container.DataItem,"Ngaytao") %>'>
                                </asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Trạng thái">
                            <ItemTemplate>
                                <asp:Label runat="server" ID="lblSocau2" Text='<%#DataBinder.Eval(Container.DataItem,"Trangthai") %>'>
                                </asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Chi tiết" HeaderStyle-HorizontalAlign="Left">
                            <ItemTemplate>
                                <asp:ImageButton runat="server" ID="img_suach" CommandName="xem" Visible="true" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"Madethi") %>'
                                    ImageUrl="~/icon/edit_profile.png" />
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Xóa">
                        <ItemTemplate>
                            <asp:ImageButton runat="server" ID="img_xoa" CommandName="xoa" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"Madethi") %>'
                                ImageUrl="~/icon/delete_user.png" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </div>
        </asp:Panel>
    </div>
</asp:Content>
